From 8ff632a048bf72be64046dfdcb533f7745a1d237 Mon Sep 17 00:00:00 2001 From: Alexander Couzens Date: Sun, 1 Oct 2023 18:48:19 +0200 Subject: [PATCH] dev.c: add comment to qmi_request_wait() Signed-off-by: Alexander Couzens --- dev.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dev.c b/dev.c index 031b0c0..ebfbbad 100644 --- a/dev.c +++ b/dev.c @@ -249,6 +249,12 @@ void qmi_request_cancel(struct qmi_dev *qmi, struct qmi_request *req) __qmi_request_complete(qmi, req, NULL); } +/*! Run uloop until the request has been completed + * + * \param qmi the qmi device + * \param req the request to wait for + * \return req->ret (0 on success) + */ int qmi_request_wait(struct qmi_dev *qmi, struct qmi_request *req) { bool complete = false; -- 2.30.2